package com.company.observer.mode;

import java.util.Date;

/**
 * @Author : hxma@easipass.com
 * @Date : 2021/5/11
 **/
public class LotteryServiceImpl extends LotteryService{

    Lottery lottery = new Lottery();

    @Override
    protected Result doDraw(String uid) {
        String message = lottery.lotteryResult(uid);
        return new Result(uid,message,new Date());
    }
}
